package org.example.sso.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.anno.Schema;
@Data
@Schema(description = "角色表")
@TableName(value = "sys_role")
@EqualsAndHashCode(callSuper = true)
public class RoleDO extends BaseDO {

    @Schema(description = "角色ID")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;


    @Schema(description = "角色名称")
    @TableField("role_name")
    private String roleName;
}
